<style lang="scss">
.error-404 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f6f7;
  & > div > img {
    width: 400px;
    height: 400px;
  }
  & > div > span {
    font-size: 24px;
  }
  & > div > div {
    margin-top: 30px;
  }
  & > div > div > a {
    font-size: 24px;
    color: #13aa52;
  }
}
</style>

<template>
  <div class="error-404">
    <img src="~/assets/images/404.gif" alt="">
    <div>
      <span>对不起！没有找到您要访问的页面。</span>
      <div>
        <NuxtLink to="/">
          带你回家->
        </NuxtLink>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Error404",
  created() {
    this.$router.replace("/404")
  },
  head() {
    return {
      title: "404"
    }
  }
}
</script>
